package managers.messengerManager.services;

import managers.messengerManager.ManageBroadcastPacketRunnable;



public class DefaultBroadcastListeningService extends Service {


	public DefaultBroadcastListeningService() {
		super("BroadcastListening");
	}

	@Override
	public void run() {
		listen();
	}

	private void listen() {

		while (true) {
			try {
				new Thread(new ManageBroadcastPacketRunnable(manager.getBroadcastProtocol().broadcastReceive())).start();
			} catch (Exception e) {
				//do nothing
			}
		}
	}



}
